{% load bootstrap3 %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Learning Log</title>
    {% bootstrap_css %}
    {% bootstrap_javascript %}
</head>

<body>
    {# 静态导航 #}
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed"
              data-toggle="collapse" data-target="#navbar"
              aria-expanded="false" aria-controls="navbar"  >
          </button>
          <a class="navbar-brand" href="{% url 'learning_logsss:index' %}">Home</a>
        </div>

        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="{% url 'learning_logsss:topics' %}">Topic</a><li>
          </ul>

          <ul class="nav navbar-nav navbar-right">
            {% if user.is_authenticated %}
              <li><a>你好,{{ user.username }}.</a></li>
              <li><a href="{%  url 'users:logout' %}">退出</a></li>
            {% else %}
              <li><a href="{% url 'users:register' %}">注册</a></li>
              <li><a href="{% url 'users:login' %}">登陆</a></li>
            {% endif %}
          </ul>
        </div>

      </div>
    </nav>

    <div class="container">
      <div class="page-header">
        {% block header %}{% endblock header %}
      </div>
      <div>
        {% block content %}{% endblock content %}
      </div>
    </div>














{#    <p>#}
{#        <a href="{% url 'learning_logsss:index' %}">Learning Log</a> -#}
{#        <a href="{% url 'learning_logsss:topics' %}">Topics</a> -#}
{#        {% if user.is_authenticated %}#}
{#            Hello,{{ user.username }}.#}
{#            <a href="{% url 'users:logout' %}">logout</a>#}
{#        {% else %}#}
{#            <a href="{% url 'users:register' %}">register</a> -#}
{#            <a href="{% url 'users:login' %}">login</a>#}
{#        {% endif %}#}
{#    </p>#}
{##}
{#    {% block content %}{% endblock content %}#}
</body>
</html>